package JavaDesign.report_1.t_2;

/**
 * @author zouran
 * createDate：2023/9/20  19:37
 */
public class Rectangle extends Geometry {
    double a, b;

    public Rectangle(double a, double b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public double getArea() {
        return a * b;
    }
}
